<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>

<html>
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<link href="css/login.css" rel="stylesheet">
<link href="css/pushy-buttons.css" rel="stylesheet">
<link href="css/cloud_bg.css" rel="stylesheet">

<link href="css/cloud_bg2.css" rel="stylesheet">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>

</head>
<body>
<%
    out.print(x(add_price));
%>

</body>

</html>
<script>
    function x(re) {

        var re = /^[0-9]+.?[0-9]*$/;
        if (!re.test(input.rate.value)) {
            alert("请输入数字(例:10)");
            input.rate.focus();
            return false;
        }
    }
</script>